package xyz.syyrjx.blog.dao.ai;

import org.apache.ibatis.annotations.Mapper;
import xyz.syyrjx.blog.entity.ai.AiIdentity;

import java.util.List;

/**
 * @author 大地崩坏苍蝇兽
 * @date 2024/2/22 12:23
 * @description ...
 * @since v0.0.1
 */
@Mapper
public interface AiIdentityDao {

    void insertIdentity(AiIdentity aiIdentity);

    AiIdentity selectAiIdentity(AiIdentity template);

    List<AiIdentity> selectExpiredAiIdentities(int lifespan);

    void deleteExpiredIdentity(int lifespan);

    void deleteIdentityById(Long id);

    void flushCookie(Long id);
}
